<%@ page language="java" import="com.wxgy.entity.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
<style>
		div{
			width: 350px;
			height: 350px;
			background-color: pink;
			margin: 50px auto;
			position: relative;
			border-radius: 20px 20px;
			border: 1px solid black;
		}
		div form{
			margin-top: 10%;
			margin-left: 20%;
		}
		div form p:nth-of-type(1){
			margin-left: 25%;
		}
		div input{
			width: 160px;
		}
		div #submit{
			margin-left: 18%;
		}
		div a{
			display:block;
			text-align:center;
			width:100%;
			margin:50px auto;
		}
	</style>
</head>
<body>
<%
    User user=(User)request.getAttribute("user");
%>
    <div>
    	<form action="UpdateUserById">
    		<p>修改用户信息</p>
    		<p>用户ID&nbsp;<input type="text" value="<%=user.getUserId() %>" name="userId" readonly="readonly"></p>
    		<p>用户名&nbsp;<input type="text" value="<%=user.getUserName() %>" name="uname"></p>
    		<p>密&nbsp;&nbsp;&nbsp;码&nbsp;<input type="password" value="<%=user.getPasswd() %>" name="upwd"></p>
    		<p>等&nbsp;&nbsp;&nbsp;级&nbsp;<input type="text" value="<%=user.getGrade() %>" name="ugrade" ></p>
    		<input type="submit" value="修改" id="submit"><br>
    	</form>
    	<a href="QueryUserByPageNowServlet">返回</a>
    </div>
</body>
</html>